/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package vita.vitasolution.service.rest;

import java.util.Set;
import javax.ws.rs.core.Application;

/**
 *
 * @author harker777
 */
@javax.ws.rs.ApplicationPath("rest")
public class ApplicationConfig extends Application {

	@Override
	public Set<Class<?>> getClasses() {
		Set<Class<?>> resources = new java.util.HashSet<Class<?>>();
		// following code can be used to customize Jersey 1.x JSON provider:
		try {
			Class jacksonProvider = Class.forName("org.codehaus.jackson.jaxrs.JacksonJsonProvider");
			resources.add(jacksonProvider);
		} catch (ClassNotFoundException ex) {
			java.util.logging.Logger.getLogger(getClass().getName()).log(java.util.logging.Level.SEVERE, null, ex);
		}
		addRestResourceClasses(resources);
		return resources;
	}

	/**
	 * Do not modify addRestResourceClasses() method. It is automatically re-generated by NetBeans REST support to
	 * populate given list with all resources defined in the project.
	 */
	private void addRestResourceClasses(
			Set<Class<?>> resources) {
		resources.add(vita.vitasolution.service.api.CaseApi.class);
		resources.add(vita.vitasolution.service.api.UserApi.class);
		resources.add(vita.vitasolution.service.rest.CaseFacadeREST.class);
		resources.add(vita.vitasolution.service.rest.CriteriaFacadeREST.class);
		resources.add(vita.vitasolution.service.rest.SolutionFacadeREST.class);
		resources.add(vita.vitasolution.service.rest.SolutionToCriteriaFacadeREST.class);
		resources.add(vita.vitasolution.service.rest.UserFacadeREST.class);
		resources.add(vita.vitasolution.service.rest.WalletFacadeREST.class);
	}
}
